package com.lw.test;

/**
 * @Description: 草莓
 * @author: 小雷
 * @createTime: 2025-02-13 17:40:02
 */
public class Strawberry extends Fruit {
    public Strawberry() {
        super("草莓", 13);
    }

    // 草莓打 8 折时计算总价的方法
    public double calculateDiscountedPrice(int quantity) {
        return 0.8 * price * quantity;
    }
}
